package com.hengpeng.itfin.persist.impl;

import java.util.List;

import org.springframework.stereotype.Repository;

import com.hengpeng.common.persist.AbstractDao;
import com.hengpeng.common.persist.query.DynamicQuery;
import com.hengpeng.itfin.persist.UserLevelSetDao;
import com.hengpeng.itfinbase.en.LevelType;
import com.hengpeng.itfinbase.persist.UserLevelSet;

@Repository
public class UserLevelSetDaoImpl extends AbstractDao<UserLevelSet> implements UserLevelSetDao {

    @Override
    public List<UserLevelSet> getByUserLevelType(LevelType levelType) {
        DynamicQuery query = new DynamicQuery(UserLevelSet.class);
        query.eq("levelType", levelType);
        return super.findAllByDynamicQuery(query);
    }

}
